<template>
    <div>
        {{desc.desc}}
    </div>
</template>
<script>
    export default {
        data(){
            return{
                desc: {

                }
            }
        },
        created(){
            this.getData("/desc", {id: this.$route.params.id})
        },
        methods: {
            getData(url, params){
                this.$http({url, params}).then(res=>{
                    this.desc = (JSON.parse(res.data)).data
                }).catch(()=>alert("请求出错"))
            }
        }
    }
</script>
<style lang="sass"></style>